package lab02.test16;

public class Test16 {
    public static void main(String[] args) {


        ArithmeticOperation arithmeticOperationAdd = new Add();

        arithmeticOperationAdd.a = 4;
        arithmeticOperationAdd.b = 2;
        System.out.println(arithmeticOperationAdd.add());


        ArithmeticOperation arithmeticOperationSubtract = new Subtract();

        arithmeticOperationSubtract.a = 4;
        arithmeticOperationSubtract.b = 2;
        System.out.println(arithmeticOperationSubtract.subtract());


        ArithmeticOperation arithmeticOperationMultiply = new Multiply();

        arithmeticOperationMultiply.a = 4;
        arithmeticOperationMultiply.b = 2;
        System.out.println(arithmeticOperationMultiply.multiply());


        ArithmeticOperation arithmeticOperationDivide = new Divide();

        arithmeticOperationDivide.a = 4;
        arithmeticOperationDivide.b = 2;
        System.out.println(arithmeticOperationDivide.divide());
    }
}
